package com.michaelbulava.TFS;

import com.intellij.openapi.components.ProjectComponent;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;

/**
 * Created by mbulava on 6/17/2015.
 */
public class TFSVcsProjectComponent implements ProjectComponent {
    private final Project myProject;

    public static final TFSVcsProjectComponent getInstance(Project project){
        return project.getComponent(TFSVcsProjectComponent.class);
    }

    public TFSVcsProjectComponent(Project project) {
        myProject = project;
        String path = myProject.getBaseDir().toString();
    }

    public void initComponent() {
        // TODO: insert component initialization logic here
    }

    public void disposeComponent() {
        // TODO: insert component disposal logic here
    }

    @NotNull
    public String getComponentName() {
        return "TFSVcsProjectComponent";
    }

    public void projectOpened() {
        // called when project is opened
    }

    public void projectClosed() {
        // called when project is being closed
    }



}
